var dataObject=function () {
	
	this.fruitNum=0;
	this.double=1;
	this.score=0;
	this.gameOver=false;
	this.alpha=0;
}

//dataObject.prototype.reset=function () {
//	this.fruitNum=0;
//	this.double=1;
//	
//}

dataObject.prototype.draw=function () {
	
	var w=can1.width;
	var h=can1.height;
	
	context1.save();
	context1.shadowBlur="10";//阴影效果
	context1.shadowColor="white";//阴影颜色
	context1.fillStyle="white";
	
//	context1.fillText("num "+this.fruitNum,w*0.5,h-50);
//	context1.fillText("double "+this.double,w*0.5,h-80);
	context1.fillText("SCORE: "+this.score,w*0.5,h-20);
	
	if(this.gameOver){
		this.alpha+=deltaTime*0.0004;
		if(this.alpha>1){
			this.alpha=1;
		}
		context1.fillStyle="rgba(255,255,255,"+this.alpha+")";
		context1.fillText("GAME OVER ",w*0.5,h*0.5);
	}
	context1.restore();
}

dataObject.prototype.addScore=function () {
	this.score+=this.fruitNum*100*this.double;
	this.fruitNum=0;
	this.double=1;
	
}